<!--
Date: 2025-08-13
Copyright (c) 2025 Industrial Software Feature Database
-->
<template>
  <div class="statistic-item">
    <div class="statistic-item__wrapper">
      <div class="item-log">
        <slot></slot>
      </div>
      <div class="item-content">
        <div class="item-content-title">
          {{ props.title }}
        </div>
        <div class="item-content-count">
          {{ props.count }}
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
const props = defineProps(['title', 'count', 'percentage']);
</script>

<style lang="scss" scoped>
.statistic-item {
  height: 100%;
  width: 100%;
  .statistic-item__wrapper {
    border: 1px solid #cccccc;
    display: flex;
    height: 100%;
    .item-log {
      flex: 0 0 40%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .item-content {
      flex: 1;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      align-items: center;
      .item-content-title {
        font-size: 0.6rem;
      }
      .item-content-count {
        font-size: 0.6rem;
        font-weight: 700;
      }
      .item-content-desc {
        font-size: 0.5rem;
        color: #666;
      }
    }
  }
}
</style>
